package com.aaa.dem1109.观察者模式;

/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2022/11/9  18:27
 */
public class User implements UserInterfacr{
    public String name;
    public User(String name){
        this.name=name;
    }

    public void getMsg(String msg){
        System.out.println(name+"公众号信息内容："+msg);
    }
}
